From: Miles Bader Date: Tue, 17 Feb 2009 10:13:59 +0000 (+0000) Subject: Tweak copyright-regexp X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~1746 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=577db91651adbfb6e18f2ab2509fdb1847582451;p=emacs.git Tweak copyright-regexp Tweaked to match copyright statements where the years follow the name. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1549 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7584ec6af09..22c8d0fec22 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-02-17 Miles Bader + + * emacs-lisp/copyright.el (copyright-regexp): Tweaked to match + copyright statements where the years follow the name. + 2009-02-17 Glenn Morris * emacs-lisp/copyright.el (copyright-update-year): Don't let y-or-n-p diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el index 04020d652e7..f454d2ef52d 100644 --- a/lisp/emacs-lisp/copyright.el +++ b/lisp/emacs-lisp/copyright.el @@ -51,7 +51,8 @@ This is useful for ChangeLogs." (defcustom copyright-regexp "\\(©\\|@copyright{}\\|[Cc]opyright\\s *:?\\s *\\(?:(C)\\)?\ \\|[Cc]opyright\\s *:?\\s *©\\)\ -\\s *\\([1-9]\\([-0-9, ';/*%#\n\t]\\|\\s<\\|\\s>\\)*[0-9]+\\)" +\\s *\\(?:[^0-9\n]*\\s *\\)?\ +\\([1-9]\\([-0-9, ';/*%#\n\t]\\|\\s<\\|\\s>\\)*[0-9]+\\)" "What your copyright notice looks like. The second \\( \\) construct must match the years." :group 'copyright